Carbon


CloseComponent

Header: Components.h Carbon status: Supported

Terminates your application’s connection to a component.

OSErr CloseComponent (
    ComponentInstance aComponentInstance
);
Parameter descriptions
aComponentInstance

The connection you wish to close. Your application obtains the component instance from the OpenComponent function or the OpenDefaultComponent function. You can use a component identifier here, but you must coerce the data type appropriately.

function result

A result code.

DISCUSSION

This function closes only a single connection. If your application has several connections to a single component, you must call it once for each connection.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)